package com.yxym.tankgame;

import javax.swing.*;

@SuppressWarnings({"all"})
public class YaMinTankGame01 extends JFrame {
    private MyPanel myPanel = null;
    //定义绘图工具

    public static void main(String[] args) {
        YaMinTankGame01 yaMinTankGame01 = new YaMinTankGame01();
    }
    public YaMinTankGame01(){

        //初始化面板
        myPanel = new MyPanel();

        //把面板放到窗口中
        this.add(myPanel);

        //设置窗口的大小
        this.setSize(1000,800);

        //退出程序
        this.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);

        //显示窗口
        this.setVisible(true);
    }
}
